<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="1.饿了么.css">
</head>

<body>
    <div id="box">
        <div class="header">
            <h1>饿了么</h1>
            <input type="text" placeholder="输入商家、商品名称">
        </div>
        <div class="banner">
            <img src="./img/banner.gif" alt="">
            <h2>猜你喜欢</h2>
        </div>
        <div class="paixu">
            <span :class="{active:active==index}" v-for="(item,index) in sort" @click="pink(index)">{{item}}</span>
        </div>
        <div class="til">
            <span v-for="(item,index) in arr">{{item}}</span>
        </div>
        <div class="big">
            <div class="good" v-for="(item,index) in good">
                <div class="left">
                    <img :src="item.img" alt="">
                </div>
                <div class="right">
                    <h3>{{item.title}}</h3>
                    <p>
                        <span class="xing">★{{item.fen}}</span>
                        <span>月售{{item.nums}}</span>
                    </p>
                    <p>
                        <span>起送￥{{item.price}}</span>
                        <span>{{item.min}}分钟</span>
                        <span>{{item.far}}km</span>
                    </p>
                    <span class="manjian" v-for="(item,index) in jian">{{item}}</span>
                </div>
            </div>
        </div>
        <div class="footer">
            <div class="logo" v-for="(item,index) in logo">
                <span :class="{foot:foots==index}" @click="footClick(index)">{{item.text}}</span>
            </div>
        </div>
    </div>
</body>

</html>
<script src="./lib/vue2.js"></script>
<script src="1.排序.js"></script>